package edu.yuhf;

import org.apache.log4j.Logger;

import java.util.stream.Stream;

/**
 * Hello world!
 */
public class App {
    private static Logger log = Logger.getLogger(App.class);
    public static void main(String[] args) {
        //基于JDK8中加入的流式操作的循环例子
        Stream.iterate(0,i->i=i+1).limit(11).forEach(element->System.out.println(element));

    }
}
